{%include file="index.header.tpl.php"%}
{%include file="index.left.tpl.php"%}
  <!--主要内容开始-->
  <div class="content-wrapper">
    <section class="content">
      <div class="row">
        <section class="col-lg-12 connectedSortable">
         <div class="box box-default box-solid">
             <form action="index.php?a=header.order&class_id=1" method="post"> 
                <div class="box-header with-border">
                    <span class="fa fa-table" style="float:left; font-size:18px; padding-top:3px; color:#3c8dbc;" ></span>
                    <p class="box-title">班级座号安排</p>
                </div>
                   <div class="box-body">
                         <table class="table table-bordered table-striped"  id="mytable">   <thead>
                            <tr style="background-color:#a273ff;">
                                        <td>班级名称</td>
                                        <td>学号</td>
                                        <td>姓名</td>
                                        <td width="20%">座号</td>
                                    </tr>
                                </thead>
                                <tbody>
                              {%foreach from=$seat_lists key=key item=value%}
                                    <tr>
                                        <td>{%$value.class_id%}</td>
                                        <td>{%$value.student_id%}</td>
                                        <td>{%$value.student_name%}</td>
                                        <td>
                                        <input type="number" name="student_seat[{%$value.student_id%}]" min="1" max="99" value="{%$value.student_seat%}">
                                         </td>
                                    </tr>   
                                {%/foreach%}  
         
                            </tbody>
                        </table>                     
           </div><!--box-body -->
                     <div class="box-footer text-center">
                 <button type="submit" class="btn btn-primary"> 保 存</button>
           </div>
               </form>
           </div><!--box box-default box-solid-->
        </section>   
           
        </div><!--row-->
    </section>
 </div>
  <!--主要内容结束-->
{%include file="index.footer.tpl.php"%}

